package com.imooc.GirlException;

import com.imooc.ResultEnum.ResultBoyEnum;

/**
 * Created by chenxin on 2017/4/30.
 */
public class GirlException extends RuntimeException {
    private Integer code;

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public GirlException(Integer code, String message) {
        super(message);
        this.code = code;
    }

    public GirlException(ResultBoyEnum resultBoyEnum) {
        super(resultBoyEnum.getMessage());
        this.code = resultBoyEnum.getCode();
    }
}
